public enum Direction {

    // 枚举项
    FRONT("abc"), BEHIND("cde"), LEFT, RIGHT;

    public Integer num = 0;

    // 所有的枚举类都有构造方法,默认都是private
    Direction() {
        System.out.println("direction执行了");
    }

    Direction(String name) {
        System.out.println("direction执行了" + name);
    }

    public void eat() {
        System.out.println("吃鸡排饭");
    }


}
